export let index = {
    namespaced: true,
    state: {
        index_data: {}
    },
    actions: {
        getIndexData(store, data = {}) {
            axios.get("/today").then(({
                data
            }) => {
                store.commit("setIndexData", data)
            });
        }
    },
    mutations: {
        setIndexData(state, data) {
            state.index_data = data;
        },
    }
}